﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BuilderPrattern
{
    /// <summary>
    /// 具体建造者类
    /// </summary>
    public class ConcreteBuilderB : Builder
    {
        private Product product=new Product();
        public override void BuildPartA()
        {
            product.Add("拿盘子");
        }

        public override void BuildPartB()
        {
            product.Add("拿刀叉");
        }

        public override Product GetResult()
        {
            return product; 
        }
    }
}
